<template>
	<router-view v-if="isWeChart"></router-view>
	<div class="" v-else>请在微信端打开链接，使用微信浏览器访问</div>
</template>
<script setup>
import { watch } from 'vue'
import { useRoute } from 'vue-router'
import infoForm from './infoForm.vue'
import { computed } from 'vue'
import { isWeChat } from './utils'
import { pushLog } from '@/api'
pushLog()
// import { useStore } from 'vuex'
const route = useRoute()
// const store = useStore()
// store.dispatch('readSecond')
const isWeChart = isWeChat()
watch(
	() => route.meta?.title,
	(title) => {
		var merge = '厦门保险机构查询'
		document.title = merge
	}
)
const isTabbarPage = computed(() => route.meta.tabbar)
</script>

<style lang="scss">
.page {
	min-height: 100vh;
	padding: 0 $space_4 $space_4;
}
.tabbar-holder {
	height: 200px;
}
.tkon-toast .van-toast__text {
	font-size: $font_large;
}
</style>
